package com.example.demo;

import com.alibaba.fastjson.JSON;

public class TestFan {


    public static void main(String[] args) {
        box2 box2 = new box2();
        box2.setName("kxz");
        box box = new box(box2);
//          类型不匹配
//        box box1 = new box(box3);
        System.out.println(JSON.toJSONString(box));
    }
}
